// 分组相关请求
import request,{Method} from '@/libs/api.js'

// 获取物流信息
export function getTraces (sn) {
  return request({
    url: `/order/order/getTraces/${sn}`,
    method: Method.GET,
  });
}

// 订单发货
export function orderDelivery (params) {
    return request({
      url: '/order/order/orderDelivery',
      method: Method.POST,
      data: params
    });
}

// 修改订单收货地址
export function updateOrderConsignee (params) {
    return request({
      url: '/order/order/updateOrderConsignee',
      method: Method.POST,
      data: params
    });
}

// 修改订单价格
export function updateOrderPrice (params) {
    return request({
      url: '/order/order/updateOrderPrice',
      method: Method.POST,
      data: params
    });
}

// 获取卖家端的订单分页数据
export function getSellerOrderByPage (params) {
    return request({
      url: '/order/order/getSellerOrderByPage',
      method: Method.POST,
      data: params
    });
}

// 获取订单详情
export function getOrderDetail (params) {
    return request({
      url: '/order/order/getOrderDetail',
      method: Method.POST,
      data: params
    });
}